package com.example.pattern.interpreter;

/**
 * 应用
 *
 * @author FM_南风
 * @date 2024/7/7
 */
public class InterpreterClient {
	public static void main(String[] args) {
		InterpreterContext context = new InterpreterContext();

		String context1 = "Rule1";
		String context2 = "Rule2";

		context.interpret(context1, new String[]{"Rule1", "Rule2"});
		context.interpret(context2, new String[]{"Rule2", "Rule3"});
	}
}
